<div>
	<ul class="breadcrumb">
		<li>My Account</li>
		<li class="active">Deposit Confirm</li>
	</ul>
	<div class="products_list products_slider" style="margin-top:20px;">
		<table>
		  <tr>
			<td class="align_left fl_left" style="margin-left:20px;font-size:20px;">
				<h2>Kode Tiket</h2>
			</td>
			<td>
				<div class="input-box fl_left" style="margin-left:20px;">
					<input type="text" id="topupdeposit_kode" class="general_inputtext" style="height:20px;width:200px;">
				</div>
			</td>
		  </tr>  
		  <tr>
			<td colspan="2">
				<br>
				<button type="button" onClick="generate()" id="button_generate" class="general_button" style="margin-left:20px;margin-top:20px;">Confirm</button>
			</td>
		  </tr>
	  </table>
	  <br><br><br><br>
		<div class="cart_table" id="confirm_response">
			<label id="confirm_responsetext"></label>
		</div>
	</div>
	<script type="text/javascript">
		var generate = null;
	</script>
	<script>
	$(document).ready(function(){
		$("#confirm_response").hide();
		function generating(){
			var kode = $("#topupdeposit_kode").val();
			$.ajax({
				url : 'index.php/c_topupdeposit/konfirmasi',
				type : 'POST',
				data : {
					kode : kode
				},success : function(msg){
					if(eval(msg) !== 0){
						$("#confirm_response").show();
						$("#confirm_responsetext").text("Konfirmasi Deposit Berhasil.");
					}else{
						$("#confirm_response").show();
						$("#confirm_responsetext").text("Konfirmasi gagal, silahkan mencoba beberapa saat lagi.");
					}
				}
			});
		}
		generate = generating;
		$("#button_submitsearch").click(function(){
			var keyword = $(".form-search").find('input').val();
			my_config.main.load('index.php/c_search?key=' + keyword);
		});
	});
	</script>
</div>